/**
 * 工作区 Conent
 *
 * @date: 2018-6-30

 */
import React from 'react';
import classNames from 'classnames';

var PageContent = function PageContent(props) {
  var title = props.title,
      description = props.description,
      children = props.children,
      style = props.style,
      wrapperStyle = props.wrapperStyle,
      wrapperClassName = props.wrapperClassName,
      className = props.className,
      _props$noCard = props.noCard,
      noCard = _props$noCard === void 0 ? false : _props$noCard;
  var classString = classNames('page-content-wrap', wrapperClassName, {
    'page-content-wrap-no-card': noCard
  });
  var contentClassString = classNames('page-content', className);
  return /*#__PURE__*/React.createElement("div", {
    className: classString,
    style: wrapperStyle
  }, /*#__PURE__*/React.createElement("div", {
    className: contentClassString,
    style: style
  }, title || description ? /*#__PURE__*/React.createElement("div", {
    className: "page-content-header",
    key: "page-content-header"
  }, /*#__PURE__*/React.createElement("div", {
    className: "title"
  }, title), /*#__PURE__*/React.createElement("div", {
    className: "description"
  }, description)) : null, /*#__PURE__*/React.createElement(React.Fragment, {
    key: "page-content-content"
  }, children)));
};

export default PageContent;